package com.zts.base.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.Date;

/**
 * Created by Zhangkh on 2017/5/31.
 */
public abstract class DataEntity extends BaseEntity {
    @JsonIgnore
    private static final long serialVersionUID = 1L;
    @JsonIgnore
    protected Long createPerson;// 创建者
    @JsonIgnore
    protected String createOrg;    // 创建机构
    @JsonIgnore
    protected Date createTime;// 创建日期
    @JsonIgnore
    protected Long updatePerson;    // 更新者
    @JsonIgnore
    protected String updateOrg;    // 创建机构
    @JsonIgnore
    protected Date updateTime;    // 更新日期
    @JsonIgnore
    protected String remark;    // 备注

    public DataEntity() {
        super();
        this.createPerson = 0L;
        this.updatePerson = 0L;
    }

    public Long getCreatePerson() {
        return createPerson;
    }

    public void setCreatePerson(Long createPerson) {
        this.createPerson = createPerson;
    }

    public String getCreateOrg() {
        return createOrg;
    }

    public void setCreateOrg(String createOrg) {
        this.createOrg = createOrg;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getUpdatePerson() {
        return updatePerson;
    }

    public void setUpdatePerson(Long updatePerson) {
        this.updatePerson = updatePerson;
    }

    public String getUpdateOrg() {
        return updateOrg;
    }

    public void setUpdateOrg(String updateOrg) {
        this.updateOrg = updateOrg;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 插入之前执行方法，需要手动调用
     */
    @Override
    public void preInsert() {
    }

    /**
     * 更新之前执行方法，需要手动调用
     */
    @Override
    public void preUpdate() {
    }


}